package communicationMessages;

import java.util.Map.Entry;

import data.Forum;
import data.SubForum;

public class ViewForumMessage extends Message {

	@Override
	public String getAnswer() {
		String ans = "subForumList\n";
		for(Entry<Integer,SubForum> indexandSubForum :Forum.getForum().get_subForumColection().entrySet()){
			ans+=indexandSubForum.getKey() +":" + indexandSubForum.getValue().get_topic() + "\n";
		}
		return ans;
	}

}
